package org.destinyshine.cricket.server;


/**
 * Created by jianyu.liu@hnlark.com onLifecycle 2016/6/12.
 *
 * @author jianyu.liu@hnlark.com
 */
public class LifecycleListenerAdapter implements LifecycleListener {

    @Override
    public void lifecycleEvent(LifecycleEvent event) {
        switch (event.getType()) {
            case Lifecycle.BEFORE_INIT_EVENT:
                onLifecycleBeforeInit(event);
            case Lifecycle.AFTER_INIT_EVENT:
                onLifecycleAfterInit(event);
            case Lifecycle.BEFORE_START_EVENT:
                onLifecycleBeforeStart(event);
            case Lifecycle.START_EVENT:
                onLifecycleStart(event);
            case Lifecycle.AFTER_START_EVENT:
                onLifecycleAfterStart(event);
            case Lifecycle.STOP_EVENT:
                onLifecycleStop(event);
            case Lifecycle.BEFORE_STOP_EVENT:
                onLifecycleBeforeStop(event);
            case Lifecycle.AFTER_STOP_EVENT:
                onLifecycleAfterStop(event);
            case Lifecycle.AFTER_DESTROY_EVENT:
                onLifecycleAfterDestroy(event);
            case Lifecycle.BEFORE_DESTROY_EVENT:
                onLifecycleBeforeDestroy(event);
            case Lifecycle.PERIODIC_EVENT:
                onLifecyclePeriodic(event);
            case Lifecycle.CONFIGURE_START_EVENT:
                onLifecycleConfigureStart(event);
            case Lifecycle.CONFIGURE_STOP_EVENT:
                onLifecycleConfigureStop(event);
        }
    }

    public void onLifecycleBeforeDestroy(LifecycleEvent event) {

    }

    public void onLifecyclePeriodic(LifecycleEvent event) {

    }

    public void onLifecycleConfigureStart(LifecycleEvent event) {

    }

    public void onLifecycleAfterDestroy(LifecycleEvent event) {

    }

    public void onLifecycleAfterStop(LifecycleEvent event) {

    }

    public void onLifecycleBeforeStop(LifecycleEvent event) {

    }

    public void onLifecycleStop(LifecycleEvent event) {
    }

    public void onLifecycleAfterStart(LifecycleEvent event) {

    }

    public void onLifecycleConfigureStop(LifecycleEvent event) {
    }

    public void onLifecycleBeforeStart(LifecycleEvent event) {
    }

    public void onLifecycleStart(LifecycleEvent event) {

    }

    public void onLifecycleAfterInit(LifecycleEvent event) {

    }

    public void onLifecycleBeforeInit(LifecycleEvent event) {

    }

}
